@overlay-color: rgba(0, 0, 0, 0.7);
@shadow-color: rgba(0, 0, 0, 0.1);

.kb1-container {
    height: 100vh;
    flex-direction: column;
}

/* 主要内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    margin-top: 10px;
    //margin-top: -10px;
}

.textbook-card {
    border-radius: 24px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    //0 4px 6px -4px rgb(0 0 0 / 0.1)
}

.textbook-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    height: 30px;
    line-height: 30px;
}

.textbook-info {
    font-size: 1rem;
    font-weight: bold;
    color: #7f7f7f;
    height: 30px;
    line-height: 30px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px @shadow-color;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px @shadow-color;

        .image-overlay {
            opacity: 1;
        }
    }

    .image-wrapper {
        position: relative;
        width: 100%;
        //height: 200px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: @overlay-color;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
    }
}

.arrow-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d5f1d6;

    .ant-float-btn-body {
        background-color: #d5f1d6;
    }

    .ant-float-btn-icon {
        .anticon {
            color: #5dd263;
        }

    }
}